package com.lebang.feign.draw.fallback;

import com.lebang.model.RequestUserInfo;
import com.lebang.feign.draw.DrawAwardFeign;
import com.lebangweb.response.Callback;
import com.lebangweb.response.JsonData;
import org.springframework.stereotype.Component;

/**
 * @Author: xwj
 * @Date: 2020/3/24 11:46
 * @Version 1.0
 */
@Component
public class DrawAwardFallback implements DrawAwardFeign {


    @Override
    public JsonData award(RequestUserInfo request, Integer status) {
        return Callback.fail("400", "请求超时");
    }

    @Override
    public JsonData info(RequestUserInfo request, String nickname, Integer phone, String awardAdress, String message, Integer id) {
        return Callback.fail("400", "请求超时");
    }

    @Override
    public JsonData draw(RequestUserInfo request) {
        return Callback.fail("400", "请求超时");
    }

    @Override
    public JsonData drawtimes(RequestUserInfo userInfo) {
        return Callback.fail("400", "请求超时");
    }
}
